<?php
/**
 * User: itimphp
 * Date: 6/12/12
 * Time: 12:10 AM
 */
error_reporting(E_ALL);
ini_set("display_errors", 1);
include_once 'includes/functions.php';
require_once 'includes/db.php';
require_once 'includes/My_Db.php';

session_save_path('tmp');
session_start();

if (empty($_SESSION['db_con'])) {
	$my_db = new My_Db($db_server, $db_username, $db_password, $db_name);
	$_SESSION['db_con'] = $my_db;
} else {
	$my_db = $_SESSION['db_con'];
}